package com.hollycrm.ahunicom.sheet.sales.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.hollycrm.ahunicom.sheet.sales.logic.SalesSheetSupportManager;
import com.hollycrm.springframework.web.struts.DispatchActionSupport;
import com.hollycrm.unicom.sheet.BeanResource;
import com.hollycrm.unicom.sheet.code.CodeManager;

public class ShowHistoryAction extends DispatchActionSupport {
	
	
	  public ActionForward execShowHistory(ActionMapping mapping,
              ActionForm actionForm,
              HttpServletRequest request,
              HttpServletResponse response
              ) throws Exception {
		  		String callinTeleNO = request.getParameter("callinTeleNO")==null ? "":request.getParameter("callinTeleNO");
		        String problemTypeID = request.getParameter("problemTypeID")==null ? "":request.getParameter("problemTypeID");
		  	
		        	
		        SalesSheetSupportManager wrsm = (SalesSheetSupportManager)getBean(SalesSheetSupportManager.beanID);
                List listSheet = wrsm.listHistroySheet(callinTeleNO, problemTypeID);
                request.setAttribute("listSheet", listSheet);
                return mapping.findForward("listSheet");
}
	

}
